﻿using BigEgg.Framework.Foundation.Validations;
using FMStudio.Domain.Properties;
using System;
using System.ComponentModel.DataAnnotations;

namespace FMStudio.Domain
{
    public interface IItemPrice
    {
        DateTime Date { get; set; }

        [Required(ErrorMessageResourceName = "MarketMandatory", ErrorMessageResourceType = typeof(Resources))]
        IMarket Market { get; set; }

        [Required(ErrorMessageResourceName = "ItemMandatory", ErrorMessageResourceType = typeof(Resources))]
        IItem Item { get; set; }

        [Required(ErrorMessageResourceName = "PriceMandatory", ErrorMessageResourceType = typeof(Resources))]
        [GreaterThan(0.0, ErrorMessageResourceName = "PriceGreater", ErrorMessageResourceType = typeof(Resources))]
        double Price { get; set; }
    }
}
